package org.vergil.dto;

import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.web.context.WebApplicationContext;

/**
 * Created by vergil on 17-3-29.
 */
@Component
@Lazy
@Scope(value = WebApplicationContext.SCOPE_SESSION)
public class User {

    private Long id;
    private String username;
    private String password;
    private Integer status;

    public Integer getStatus() {
        return status;
    }

    public Long getId() {
        return id;
    }

    public String getPassword() {
        return password;
    }

    public String getUsername() {
        return username;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
